<?php
/* @var $this ApplicationRolesController */
/* @var $model ApplicationRoleList */
/* @var $form CActiveForm */
?>

<div class="form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'application-role-list-form',
	'enableAjaxValidation'=>false,
)); ?>

	<p class="note">Fields with <span class="required">*</span> are required.</p>

	<?php echo $form->errorSummary($model); ?>

	<div class="row">
    	<?php echo $form->labelEx($model,'application_list_id'); ?>
        <?php echo $form->dropDownList($model, 'application_list_id', CHtml::listData(ApplicationList::model()->findAll(), 'id', 'id')); ?>
	</div>
	<div class="row">
    	<?php echo $form->labelEx($model,'role_level'); ?>
        <?php echo $form->checkBoxList($model, 'role_level', CHtml::listData(Role::model()->findAll(), 'id', 'name'), array('template'=>'{label} {input}')); ?>
	</div>

	<div class="row buttons">
		<?php echo CHtml::submitButton($model->isNewRecord ? 'Create' : 'Save'); ?>
	</div>

<?php $this->endWidget(); ?>

</div><!-- form -->